package com.example.demo.data.repository

import com.example.demo.data.Order
import com.example.demo.data.User
import org.springframework.data.domain.Pageable
import org.springframework.data.repository.CrudRepository

interface OrderRepository: CrudRepository<Order, Long> {

    fun findByUserOrderByPlacedAtDesc(user: User, pageable: Pageable): List<Order>
}